package com.cosina.game.robodefence.findway;


import java.util.Arrays;


public class ChartTest {
	
	static int[][] data = {
		
		{0,1,0,1,0,0,0,0,1,0,0,1,0,1,0,0,0,0,1,0},
		{0,1,0,1,0,0,1,1,1,0,0,1,0,0,0,0,0,0,1,0},
		{0,1,1,1,0,0,0,0,0,0,0,1,0,1,1,1,1,1,1,0},
		{0,0,0,1,1,1,1,1,0,0,0,1,0,1,1,0,0,1,1,0},
		{0,0,0,1,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0},
		{0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
		{0,0,0,0,0,0,1,0,0,0,0,1,0,1,1,1,1,1,1,0},
		{0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
		{0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0},
		{0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0},
		{0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0},
		{0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0},
	};
	public static void main(String[] args) {
		Chart chart = new Chart(data);
		long time = System.currentTimeMillis();
		for(int i=0; i<1; i++){
			BlankRoute br = chart.connectvie(0,0, 19,0);
			int[][] routes = br.routes;
			for(int y=0; y<routes.length; y++) {
				System.out.println(Arrays.toString(routes[y]));
			}
			NeatWay.tranlate(routes);
		}
		System.out.println(System.currentTimeMillis() - time);
	}
}
